package com.ideaplugin.datamanager.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author zhaojingbo
 * @since 2023-09-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "table_column")
public class TableColumn implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    private Long tableInfoId;

    private String columnCode;

    private String columnName;

    /**
     * date 日期型，string字符串型，number数字型,primary 主键
     */
    private String columnType;

    /**
     * 下拉可选数据,格式 01:成功,02:失败
     */
    private String columnOptions;

    /**
     * 字段排序
     */
    private Integer orderNo;

    private Date createTime;

    private Date updateTime;

    /**
     * 维度类型，indicators ，dimension
     */
    private String dimensionType;
    /**
     * 维度类型的扩展属性
     */
    private String dimensionExtra;
    /**
     * 高级属性
     */
    private String dimensionAdvanced;

    private String defaultValue;

}
